package com.wolfheader.wolfgame.dao.admin;

import javax.transaction.Transactional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.wolfheader.wolfgame.entity.admin.AdminEntity;

@Transactional
public interface AdminDao extends PagingAndSortingRepository<AdminEntity, Long> {

	AdminEntity findByUsername(String username);

	Page<AdminEntity> findAll(Specification<AdminEntity> spec, Pageable pageable);
}
